package com.gxa.hualianeshop.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxa
 * @since 2023-07-05
 */
@Getter
@Setter
@TableName("tb_role")
@ApiModel(value = "Role对象", description = "")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
      @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;

    @ApiModelProperty("标识编号")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty("备注")
    @TableField("role_remark")
    private String roleRemark;

    @ApiModelProperty("创建时间")
    @TableField("created")
    private LocalDateTime created;

    @ApiModelProperty("更新时间")
    @TableField("updated")
    private LocalDateTime updated;

    @ApiModelProperty("状态（1:正常,2:停用）")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty("删除标志（1代表存在,2代表删除）")
    @TableField("deleted")
    private Boolean deleted;


}
